import { useState } from 'react';
import { createModel } from 'hox';

export interface stateProps {
  selectedRowKeys: any[];
}
function useBlankCardModel() {
  const [state, setState] = useState<stateProps>({
    selectedRowKeys: [],
  });
  const dispatch = (payload: Partial<stateProps>) => {
    setState({ ...state, ...payload });
  };
  return { ...state, dispatch };
}
export default createModel(useBlankCardModel);
